import request from '@/utils/request'

//分类： 请求
export const artChannelService = () => request.get('/my/cate/list')

//分类： 增加
export const artAddService = (data) => request.post('/my/cate/add', data)

//分类： 更新
export const artUpdataService = (data) => request.put('/my/cate/info', data)

//分类： 删除
export const artDeletaService = (id) =>
  request.delete('/my/cate/del', {
    params: { id }
  })

// 管理： 请求
export const artManageService = (params) =>
  request.get('/my/article/list', {
    params
  })

// 管理：发布
export const artPublishService = (data) => request.post('/my/article/add', data)

// 管理：获取
export const artDetailServicr = (id) =>
  request.get('/my/article/info', {
    params: {
      id
    }
  })

// 管理：更新
export const artEditService = (data) => request.put('/my/article/info', data)
